/*
 * @Description: 最小公倍数
 * @Author: rendc
 * @Date: 2021-08-26 14:30:03
 * @LastEditors: rendc
 * @LastEditTime: 2021-08-27 14:05:53
 */
const readline = require('readline-sync');
// console.log(gongBeiShu(5,7));
var input = readline.question("请输入两个数字，用空格隔开：");
console.log(input);
var a = input.split(' ')[0];
var b = input.split(' ')[1];
console.log(gongBeiShu(a, b));
function gongBeiShu (a, b) {
  //  先获得两数的倍数
  var c = a * b;
  for (var i = 1; i <= c; i++) {
    if (i % a === 0 && i % b === 0) {
      return i;
    }
  }
}
